package com.test.groovy

/**
 * Mapper--GroovyTest
 *
 * @author: Jovi
 *
 * @createTime: 2018-06-11 14:13
 *
 * */
class Mapper {

    static void main(String[] args) {
        def hash = [name: "Andy", "Vpn-#": 45]
        println hash.getClass()

        hash.put("id", 23)
        println hash.get("name") == "Andy"

        hash.dob = "01/29/88"
        println hash.dob == "01/29/88"

        println hash["name"] == "Andy"

        hash["gender"] = "male"

        println hash.gender == "male"
        println hash["gender"] == "male"
    }

}
